package com.by.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service
public class MainService {
	
	@Autowired
    private JdbcTemplate jdbcTemplate;
	
	public List getAllUsers() {
        return jdbcTemplate.queryForList("select source, target   from t_relation");
    }

}
